#!/usr/bin/env bash
: ${1?"
Usage: $0 [mysql_options]

Example: $0 -u root -proot"}

for i in $(ls fm3*.sql.gz); do
    gunzip $i
    mysql $@ < ${i%%.gz}
done